<template>
  <div>
    优化版本
    <div id="plot" style="width: 100%; height: 420px;" ref="plot"></div>
  </div>
</template>

<script>

import { drawContourFromTriples } from './contour-idw'; // 把上面的代码放到这里 // 你贴的数组
import {coorData} from "@/views/contour/coor.js"

export default {
  mounted() {
    drawContourFromTriples(coorData.option.series[0].data, this.$refs.plot);
  },
  beforeDestroy() {
    this.$refs.plot && window.Plotly && Plotly.purge(this.$refs.plot);
  }
};

</script>
